package com.test1;

import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.graphics.Matrix;
public class GameImage implements GameResource {
	public Bitmap bitmap = null;
	public  Rect rect = null;
	public Matrix matrix = null;
	
	public GameImage(){
		
	}
	
	public GameImage( int id ){
		this.bitmap = ResourceManager.getResource( id );
		this.rect = new Rect();
		this.rect.left = 0;
		this.rect.top = 0;
		this.rect.right = this.bitmap.getWidth();
		this.rect.bottom = this.bitmap.getHeight();
	}
	
	public GameImage( int id, Rect rect ){
		this.bitmap = ResourceManager.getResource( id );
		this.rect = rect;
	}
	
	public void drawImage( Canvas canvas ){
//		canvas.drawBitmap( this.bitmap, rect, dst, paint)
	}
	
	public int getWidth(){
		return this.rect.width();
	}
	
	public int getHeight(){
		return this.rect.height();
	}

	public void clean() {
		// TODO Auto-generated method stub
	}
}
